package com.jly.edu.common.dto;


import com.jly.edu.common.validated.SaveGroup;
import com.jly.edu.common.validated.UpdateGroup;
import com.jly.edu.entity.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
public class SysRoleDto implements Serializable {


    @NotNull(message = "角色id不能为空",groups = {UpdateGroup.class})
    private Long id;
    @NotNull(message = "角色名称不能为空",groups = {SaveGroup.class,UpdateGroup.class})
    private String name;
    @NotNull(message = "角色编码不能为空",groups = {SaveGroup.class,UpdateGroup.class})
    private String code;
    @NotNull(message = "状态不能为空",groups = {SaveGroup.class,UpdateGroup.class})
    private Integer status;
    /**
     * 备注
     */
    private String remark;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    List<Long> menuIds = new ArrayList<>();


}
